package com.hubei.service.impl;

import com.hubei.dao.DepartmentDao;
import com.hubei.service.DepartmentService;
import com.hubei.vo.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Title: DepartmentServiceImpl
 * @Author qzAI
 * @Package com.hubei.service.impl
 * @Date 2025/6/28 14:25
 */
@Service("departService")
public class DepartmentServiceImpl implements DepartmentService {
    @Autowired
    private DepartmentDao departDao = null;
    @Override
    @Transactional
    public int batchInsert(List<Department> list) {
        return departDao.batchInsert(list);
    }
}
